<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">NED File <i>modules/mobility/MoBANLocal.ned</i></h2>
<table class="typetable">
   <tr>
      <th>Name</th>
      <th>Description</th>
   </tr>
<tr>
   <td>
      <a href="org.mixim.modules.mobility.MoBANLocal.html">MoBANLocal</a>
      <i> (simple&nbsp;module)</i>
   </td>
   <td>

<p>This is the local mobility module of MoBAN. It should be instantiated in each node that belongs to a WBAN. The NED parameter "coordinatorIndex"
determine to which WBAN (<a href="org.mixim.modules.mobility.MoBANCoordinator.html">MoBANCoordinator</a>) it belongs.
The current implementation uses the Random Walk Mobility Model (RWMM) for individual (local) movement with a sphere around the node, with given speed
and sphere radius of the current posture. The reference point of the node it the current posture, the sphere radius, and the speed is given by the
corresponding coordinator through the blackboard. RWMM determines the location of node at ant time relative to the given reference point.</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #800000; font-weight: bold; ">package</span><span style="color: #000000; "> </span><span style="color: #000000; ">org</span><span style="color: #000000; ">.</span><span style="color: #000000; ">mixim</span><span style="color: #000000; ">.</span><span style="color: #000000; ">modules</span><span style="color: #000000; ">.</span><span style="color: #000000; ">mobility</span><span style="color: #000000; ">;
</span><span style="color: #808080; font-style: italic; ">//***************************************************************************
//* file:        MoBANLocal.ned
//*
//* author:      Majid Nabi &lt;m.nabi@tue.nl&gt;
//*
//*              http://www.es.ele.tue.nl/nes
//*
//*
//* copyright:   (C) 2010 Electronic Systems group(ES),
//*              Eindhoven University of Technology (TU/e), the Netherlands.
//*
//*
//*              This program is free software; you can redistribute it
//*              and/or modify it under the terms of the GNU General Public
//*              License as published by the Free Software Foundation; either
//*              version 2 of the License, or (at your option) any later
//*              version.
//*              For further information see file COPYING
//*              in the top level directory
//***************************************************************************
//* part of:    MoBAN (Mobility Model for wireless Body Area Networks)
//* description:     Local module of the MoBAN mobility model
//***************************************************************************
//* Citation of the following publication is appreciated if you use MoBAN for
//* a publication of your own.
//*
//* M. Nabi, M. Geilen, T. Basten. MoBAN: A Configurable Mobility Model for Wireless Body Area Networks.
//* In Proc. of the 4th Int'l Conf. on Simulation Tools and Techniques, SIMUTools 2011, Barcelona, Spain, 2011.
//*
//* BibTeX:
//*	@inproceedings{MoBAN,
//* 	author = &quot;M. Nabi and M. Geilen and T. Basten.&quot;,
//* 	title = &quot;{MoBAN}: A Configurable Mobility Model for Wireless Body Area Networks.&quot;,
//*    	booktitle = &quot;Proceedings of the 4th Int'l Conf. on Simulation Tools and Techniques.&quot;,
//*    	series = {SIMUTools '11},
//*    	isbn = {978-963-9799-41-7},
//*	year = {2011},
//*    	location = {Barcelona, Spain},
//*	publisher = {ICST} }
//*
//**************************************************************************/
</span><span style="color: #000000; ">



</span><span style="color: #800000; font-weight: bold; ">import</span><span style="color: #000000; "> </span><span style="color: #000000; ">org</span><span style="color: #000000; ">.</span><span style="color: #000000; ">mixim</span><span style="color: #000000; ">.</span><span style="color: #000000; ">base</span><span style="color: #000000; ">.</span><span style="color: #000000; ">modules</span><span style="color: #000000; ">.</span><span style="color: #000000; ">BaseMobility</span><span style="color: #000000; ">;

</span><span style="color: #808080; font-style: italic; ">// This is the local mobility module of MoBAN. It should be instantiated in each node that belongs to a WBAN. The NED parameter &quot;coordinatorIndex&quot;
// determine to which WBAN (MoBANCoordinator) it belongs.
// The current implementation uses the Random Walk Mobility Model (RWMM) for individual (local) movement with a sphere around the node, with given speed
// and sphere radius of the current posture. The reference point of the node it the current posture, the sphere radius, and the speed is given by the
// corresponding coordinator through the blackboard. RWMM determines the location of node at ant time relative to the given reference point.
</span><span style="color: #800000; font-weight: bold; ">simple</span><span style="color: #000000; "> </span><span style="color: #000000; ">MoBANLocal</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">BaseMobility</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
    	</span><span style="color: #000000; font-weight: bold; ">@class</span><span style="color: #000000; ">(</span><span style="color: #000000; ">MoBANLocal</span><span style="color: #000000; ">);
        </span><span style="color: #000080; font-weight: bold; ">bool</span><span style="color: #000000; "> </span><span style="color: #000000; ">debug</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// debug switch
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">updateInterval</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #000000; ">s</span><span style="color: #000000; ">); </span><span style="color: #808080; font-style: italic; ">// Time interval to update the hosts position (seconds)
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">int</span><span style="color: #000000; "> </span><span style="color: #000000; ">coordinatorIndex</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// The index of the belonging coordinator module
</span><span style="color: #000000; ">}
</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
